package com.ikun.starters.ip2region.properties;


import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author xiaobobo
 * @title: TokenConfigurationProperties
 * @projectName iot-fy-2301-parent
 * @description: 这个是框架中可变的参数抽取出来形成一个类
 * @date 2023/10/8  10:58
 */
@ConfigurationProperties(prefix = "starters.ip2region")
public class IP2regionConfigurationProperties {

    //解析公网的地址 默认地址https://api.ipify.org
    private String parsePublicIpPath = "https://api.ipify.org";

    //ip——db地址 默认地址 IPdata/ip2region.xdb
    private String dbPath = "IPdata/ip2region.xdb";

    public void setDbPath(String dbPath) {
        this.dbPath = dbPath;
    }

    public String getDbPath() {
        return dbPath;
    }

    public void setParsePublicIpPath(String parsePublicIpPath) {
        this.parsePublicIpPath = parsePublicIpPath;
    }

    public String getParsePublicIpPath() {
        return parsePublicIpPath;
    }
}
